<%--
  Created by IntelliJ IDEA.
  User: luoxuan
  Date: 2022/11/4
  Time: 11:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改题目</title>
    <style>
        *{
            text-align: center;
        }
    </style>
</head>
<body>
    <h1>修改题目</h1>
    <form action="update" method="post">
        <p>
            id: <input name="questionid" value="${question.questionid}" readonly/>
        </p>
        <p>
           题目: <input name="question" value="${question.question}"/>
        </p>
        <p>
            选项A: <input name="optiona" value="${question.optiona}"/>
        </p>
        <p>
            选项B: <input name="optionb" value="${question.optionb}"/>
        </p>
        <p>
            选项C: <input name="optionc" value="${question.optionc}"/>
        </p>
        <p>
            选项D: <input name="optiond" value="${question.optiond}"/>
        </p>
        <p>
            课程: <select name="subject">
                <option value="101" ${101==question.subject?"selected":""}>101</option>
                <option value="102" ${102==question.subject?"selected":""}>102</option>
                <option value="103" ${103==question.subject?"selected":""}>103</option>
            </select>
        </p>
        <p>
            答案: <input name="answer" value="${question.answer}"/>
        </p>
        <p>
            <input type="submit" value="提交"/>
        </p>
    </form>
</body>
</html>
